package com.cjkj.equipment.domain;

import com.cjkj.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 预警值设置对象 t_warn_setting
 * 
 * @author cjkj
 * @date 2024-08-30
 */
public class TWarnSetting extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Integer id;

    /** 预警类型 */
    private String warnType;

    /** 阈值上限 */
    private Double upperLimit;

    /** 阈值下限 */
    private Double lowerLimit;

    /** 预警次数限制（达到多少次预警次数后，进行提醒） */
    private Integer warnCountLimit;

    /** 当选择为稍后提醒时，间隔多久再次预警 */
    private String holdOnTime;

    public void setId(Integer id)
    {
        this.id = id;
    }

    public Integer getId()
    {
        return id;
    }
    public void setWarnType(String warnType) 
    {
        this.warnType = warnType;
    }

    public String getWarnType() 
    {
        return warnType;
    }
    public void setUpperLimit(Double upperLimit)
    {
        this.upperLimit = upperLimit;
    }

    public Double getUpperLimit()
    {
        return upperLimit;
    }
    public void setLowerLimit(Double lowerLimit)
    {
        this.lowerLimit = lowerLimit;
    }

    public Double getLowerLimit()
    {
        return lowerLimit;
    }
    public void setWarnCountLimit(Integer warnCountLimit)
    {
        this.warnCountLimit = warnCountLimit;
    }

    public Integer getWarnCountLimit()
    {
        return warnCountLimit;
    }
    public void setHoldOnTime(String holdOnTime) 
    {
        this.holdOnTime = holdOnTime;
    }

    public String getHoldOnTime() 
    {
        return holdOnTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("warnType", getWarnType())
            .append("upperLimit", getUpperLimit())
            .append("lowerLimit", getLowerLimit())
            .append("warnCountLimit", getWarnCountLimit())
            .append("holdOnTime", getHoldOnTime())
            .toString();
    }
}
